package com.jiayou.system.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author lishuang
 * @since 2021-07-19
 */
@ApiModel(value = "SysRole对象", description = "角色表")
class SysRole : Model<SysRole>() {

    @ApiModelProperty(value = "主键id")
    var id: String? = null

    @ApiModelProperty(value = "角色名称")
    var roleName: String? = null

    @ApiModelProperty(value = "角色编码")
    var roleCode: String? = null

    @ApiModelProperty(value = "描述")
    var description: String? = null

    @ApiModelProperty(value = "创建人")
    var createBy: String? = null

    @ApiModelProperty(value = "创建时间")
    var createTime: LocalDateTime? = null

    @ApiModelProperty(value = "更新人")
    var updateBy: String? = null

    @ApiModelProperty(value = "更新时间")
    var updateTime: LocalDateTime? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "SysRole{" +
                "id=" + id +
                ", roleName=" + roleName +
                ", roleCode=" + roleCode +
                ", description=" + description +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                "}"
    }
}
